#include <soar.h>

int main(int argc, char *argv[])
{
    int res;
    char buf[BUFFER_SIZE+1];

    //res=init_errlog(argv[0], "//localhost:10020, _log");
    //res=init_errlog("errlog", "_log");
    sprintf(buf, "//localhost:%d", SN_LOG_DEF_SERVER_PORT);
    res=init_errlog("errlog", buf);
    if(res)
    {
        printf("init_errlog fail, res:%d\n", res);
        return(-1);
    }
    memset(buf, '0', BUFFER_SIZE);
    buf[BUFFER_SIZE]=ZERO;
    errlog("%s: first log! %s", __func__, buf);

    return(0);
}
